﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using EstepLibrary;


public partial class includes_homeSlider : System.Web.UI.UserControl
{
    EstepLibrary.Veriler Kayitseti = new EstepLibrary.Veriler();
    EstepLibrary.GENELAYAR RsAyarlar = new EstepLibrary.GENELAYAR();
    EstepLibrary.Tool RSTool = new EstepLibrary.Tool();
    protected void Page_Load(object sender, EventArgs e)
    {
        GETICERIK();
        GETPAGING();
    }

    private void GETPAGING()
    {
        string sorgu = RSTool.GetAnaHaberIDIcerik(RsAyarlar.ANAHABERID3, "null");

        rptDotPaging.DataSource = Kayitseti.GetDataSet(sorgu);
        rptDotPaging.DataBind();
    }


    private void GETICERIK()
    {
        string sorgu = RSTool.GetAnaHaberIDIcerik(RsAyarlar.ANAHABERID3, "null");

        rptCandidateSlider.DataSource = Kayitseti.GetDataSet(sorgu);
        rptCandidateSlider.DataBind();

    }
}